package com.cizzy.user.feign;

import com.cizzy.user.common.Result;
import com.cizzy.user.entity.dto.VideoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("favorite-server-service")
public interface FavoriteFeign {
    @GetMapping("/collect/getCollectById/{userId}")
    Result<List<VideoDTO>> getCollectById(@PathVariable("userId") Long userId);
}
